DimenInterpolatedSp

EN Utility object for handling SSP (Scalable Sp) dimensions from Java.

PT Objeto utilitário para manipulação de dimensões SSP (Scalable Sp) no Java.

Functions

Link copied to clipboard
fun getDimensionInPx(context: Context, qualifier: DpQualifier, value: Int, fontScale: Boolean = true, inverter: Inverter = Inverter.DEFAULT, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Generic scaling function for Java (PX). PT Função de escala genérica para Java (PX).

Link copied to clipboard
fun getDimensionInSp(context: Context, qualifier: DpQualifier, value: Int, fontScale: Boolean = true, inverter: Inverter = Inverter.DEFAULT, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Generic scaling function for Java (SP value). PT Função de escala genérica para Java (valor SP).

Link copied to clipboard
fun hei(context: Context, value: Int): Float

EN Quick resolution for Screen Height without font scale.

Link copied to clipboard
fun heia(context: Context, value: Int): Float
Link copied to clipboard
fun heii(context: Context, value: Int): Float
Link copied to clipboard
fun heiia(context: Context, value: Int): Float
Link copied to clipboard
fun hemLw(context: Context, value: Int): Float

EN Quick resolution for Screen Height without font scale, landscape is Screen Width.

Link copied to clipboard
fun hemLwa(context: Context, value: Int): Float
Link copied to clipboard
fun hemLwi(context: Context, value: Int): Float
Link copied to clipboard
fun hemLwia(context: Context, value: Int): Float
Link copied to clipboard
fun hemPw(context: Context, value: Int): Float

EN Quick resolution for Screen Height without font scale, portrait is Screen Width.

Link copied to clipboard
fun hemPwa(context: Context, value: Int): Float
Link copied to clipboard
fun hemPwi(context: Context, value: Int): Float
Link copied to clipboard
fun hemPwia(context: Context, value: Int): Float
Link copied to clipboard
fun ihsp(context: Context, value: Int): Float

EN Quick resolution for Screen Height (ihsp). PT Resolução rápida para Altura da Tela (ihsp).

Link copied to clipboard
fun ihspa(context: Context, value: Int): Float
Link copied to clipboard
fun ihspi(context: Context, value: Int): Float
Link copied to clipboard
fun ihspia(context: Context, value: Int): Float
Link copied to clipboard
fun ihspLw(context: Context, value: Int): Float

EN Quick resolution for Screen Height (ihsp), but in landscape orientation it acts as Screen Width (iwsp).

Link copied to clipboard
fun ihspLwa(context: Context, value: Int): Float
Link copied to clipboard
fun ihspLwi(context: Context, value: Int): Float
Link copied to clipboard
fun ihspLwia(context: Context, value: Int): Float
Link copied to clipboard
fun ihspMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Height (ihsp) with UiModeType override.

Link copied to clipboard
fun ihspPw(context: Context, value: Int): Float

EN Quick resolution for Screen Height (ihsp), but in portrait orientation it acts as Screen Width (iwsp).

Link copied to clipboard
fun ihspPwa(context: Context, value: Int): Float
Link copied to clipboard
fun ihspPwi(context: Context, value: Int): Float
Link copied to clipboard
fun ihspPwia(context: Context, value: Int): Float
Link copied to clipboard
fun ihspQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Height (hSP) conditional scaling.

Link copied to clipboard
fun ihspRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.HEIGHT, orientation: Orientation = Orientation.LANDSCAPE, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Height (ihsp) with rotation override.

Link copied to clipboard
fun ihspScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Height (hSP) context conditional scaling.

Link copied to clipboard
fun issp(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (issp). PT Resolução rápida para Smallest Width (issp).

Link copied to clipboard
fun isspa(context: Context, value: Int): Float
Link copied to clipboard
fun isspi(context: Context, value: Int): Float
Link copied to clipboard
fun isspia(context: Context, value: Int): Float
Link copied to clipboard
fun isspLh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (issp), but in landscape orientation it acts as Screen Height (ihsp).

Link copied to clipboard
fun isspLha(context: Context, value: Int): Float
Link copied to clipboard
fun isspLhi(context: Context, value: Int): Float
Link copied to clipboard
fun isspLhia(context: Context, value: Int): Float
Link copied to clipboard
fun isspLw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (issp), but in landscape orientation it acts as Screen Width (iwsp).

Link copied to clipboard
fun isspLwa(context: Context, value: Int): Float
Link copied to clipboard
fun isspLwi(context: Context, value: Int): Float
Link copied to clipboard
fun isspLwia(context: Context, value: Int): Float
Link copied to clipboard
fun isspMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Smallest Width (issp) with UiModeType override.

Link copied to clipboard
fun isspPh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (issp), but in portrait orientation it acts as Screen Height (ihsp).

Link copied to clipboard
fun isspPha(context: Context, value: Int): Float
Link copied to clipboard
fun isspPhi(context: Context, value: Int): Float
Link copied to clipboard
fun isspPhia(context: Context, value: Int): Float
Link copied to clipboard
fun isspPw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (issp), but in portrait orientation it acts as Screen Width (iwsp).

Link copied to clipboard
fun isspPwa(context: Context, value: Int): Float
Link copied to clipboard
fun isspPwi(context: Context, value: Int): Float
Link copied to clipboard
fun isspPwia(context: Context, value: Int): Float
Link copied to clipboard
fun isspQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Smallest Width (swSP) conditional scaling.

Link copied to clipboard
fun isspRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.SMALL_WIDTH, orientation: Orientation = Orientation.LANDSCAPE, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Smallest Width (issp) with rotation override.

Link copied to clipboard
fun isspScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Smallest Width (swSP) context conditional scaling.

Link copied to clipboard
fun iwemPh(context: Context, value: Int): Float

EN Quick resolution for Screen Width without font scale, portrait is Screen Height.

Link copied to clipboard
fun iwemPha(context: Context, value: Int): Float
Link copied to clipboard
fun iwemPhi(context: Context, value: Int): Float
Link copied to clipboard
fun iwemPhia(context: Context, value: Int): Float
Link copied to clipboard
fun iwsp(context: Context, value: Int): Float

EN Quick resolution for Screen Width (iwsp). PT Resolução rápida para Largura da Tela (iwsp).

Link copied to clipboard
fun iwspa(context: Context, value: Int): Float
Link copied to clipboard
fun iwspi(context: Context, value: Int): Float
Link copied to clipboard
fun iwspia(context: Context, value: Int): Float
Link copied to clipboard
fun iwspLh(context: Context, value: Int): Float

EN Quick resolution for Screen Width (iwsp), but in landscape orientation it acts as Screen Height (ihsp).

Link copied to clipboard
fun iwspLha(context: Context, value: Int): Float
Link copied to clipboard
fun iwspLhi(context: Context, value: Int): Float
Link copied to clipboard
fun iwspLhia(context: Context, value: Int): Float
Link copied to clipboard
fun iwspMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Width (iwsp) with UiModeType override.

Link copied to clipboard
fun iwspPh(context: Context, value: Int): Float

EN Quick resolution for Screen Width (iwsp), but in portrait orientation it acts as Screen Height (ihsp).

Link copied to clipboard
fun iwspPha(context: Context, value: Int): Float
Link copied to clipboard
fun iwspPhi(context: Context, value: Int): Float
Link copied to clipboard
fun iwspPhia(context: Context, value: Int): Float
Link copied to clipboard
fun iwspQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Width (wSP) conditional scaling.

Link copied to clipboard
fun iwspRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.WIDTH, orientation: Orientation = Orientation.LANDSCAPE, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Width (iwsp) with rotation override.

Link copied to clipboard
fun iwspScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Width (wSP) context conditional scaling.

Link copied to clipboard
fun scaled(initialBaseValue: Float): InterpolatedSp

EN Starts the build chain for the custom dimension InterpolatedSp from a base Float. PT Inicia a cadeia de construção para a dimensão customizada InterpolatedSp a partir de um Float base.

fun scaled(initialBaseValue: Int): InterpolatedSp

EN Starts the build chain for the custom dimension InterpolatedSp from a base Int. PT Inicia a cadeia de construção para a dimensão customizada InterpolatedSp a partir de um Int base.

Link copied to clipboard
fun sei(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sei) - Without font scale. PT Resolução rápida para Smallest Width (sei) - Sem escala de fonte.

Link copied to clipboard
fun seia(context: Context, value: Int): Float
Link copied to clipboard
fun seii(context: Context, value: Int): Float
Link copied to clipboard
fun seiia(context: Context, value: Int): Float
Link copied to clipboard
fun semLh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width without font scale, landscape is Screen Height.

Link copied to clipboard
fun semLha(context: Context, value: Int): Float
Link copied to clipboard
fun semLhi(context: Context, value: Int): Float
Link copied to clipboard
fun semLhia(context: Context, value: Int): Float
Link copied to clipboard
fun semLw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width without font scale, landscape is Screen Width.

Link copied to clipboard
fun semLwa(context: Context, value: Int): Float
Link copied to clipboard
fun semLwi(context: Context, value: Int): Float
Link copied to clipboard
fun semLwia(context: Context, value: Int): Float
Link copied to clipboard
fun semPh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width without font scale, portrait is Screen Height.

Link copied to clipboard
fun semPha(context: Context, value: Int): Float
Link copied to clipboard
fun semPhi(context: Context, value: Int): Float
Link copied to clipboard
fun semPhia(context: Context, value: Int): Float
Link copied to clipboard
fun semPw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width without font scale, portrait is Screen Width.

Link copied to clipboard
fun semPwa(context: Context, value: Int): Float
Link copied to clipboard
fun semPwi(context: Context, value: Int): Float
Link copied to clipboard
fun semPwia(context: Context, value: Int): Float
Link copied to clipboard

EN Eagerly initializes DimenCache (persistence / DataStore) so the first resolution on a hot path avoids lazy-init work. PT Inicializa o DimenCache antecipadamente para evitar custo lazy no primeiro uso.

Link copied to clipboard
fun wei(context: Context, value: Int): Float

EN Quick resolution for Screen Width without font scale.

Link copied to clipboard
fun weia(context: Context, value: Int): Float
Link copied to clipboard
fun weii(context: Context, value: Int): Float
Link copied to clipboard
fun weiia(context: Context, value: Int): Float
Link copied to clipboard
fun wemLh(context: Context, value: Int): Float

EN Quick resolution for Screen Width without font scale, landscape is Screen Height.

Link copied to clipboard
fun wemLha(context: Context, value: Int): Float
Link copied to clipboard
fun wemLhi(context: Context, value: Int): Float
Link copied to clipboard
fun wemLhia(context: Context, value: Int): Float